package com.gdqy.FCS.common.mvc;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

public class Servlets {
	
	/**
	 * 获取当前请求
	 * @return
	 */
	public static HttpServletRequest getRequest() {
		
		return ((ServletRequestAttributes) RequestContextHolder
				.getRequestAttributes()).getRequest();
	}
}
